// 初始数据源
const initState = {
  n: 300,
  films: []
}

const reducer = (state = initState, action) => {
  if (action.type === 'film_add') {
    console.log('film add')
  }

  if (action.type === 'film_addfilms') {
    return { ...state, films: action.data }
  }
  return state
}

export default reducer
